import request from '@/utils/request'

// 获取报表类型下拉列表
export function getReportTypeList() {
  return request({
    url: '/dispatch/report/setting/getReportTypeList',
    method: 'get'
  })
}

// 获取站点配置列表
export function getSiteList() {
  return request({
    url: '/dispatch/report/setting/getSiteList',
    method: 'get'
  })
}

// 获取监测量下拉列表
export function getMonitoringList() {
  return request({
    url: '/dispatch/report/setting/monitoringList',
    method: 'get'
  })
}

// 新增映射
export function addMapping(data) {
  return request({
    url: '/dispatch/report/setting/addMapping',
    method: 'post',
    data
  })
}

// 获取水质限值配置
export function getWaterQualityLimit() {
  return request({
    url: '/dispatch/report/setting/getWaterQualityLimit',
    method: 'get'
  })
}

// 删除统计项映射
export function deleteMapping(id) {
  return request({
    url: `/dispatch/report/setting/deleteMapping/${id}`,
    method: 'delete'
  })
}